/*
 * @Author: Meow
 * @Date: 2019-10-10 20:34:43
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2019-10-19 21:05:50
 * @Description: 辅助功能-路由模块
 */
export const MoreUse = [
  // 标签管理
  {
    name: 'LabelManagement',
    path: 'LabelManagement',
    meta: {
      requiresAuth: true // 说明需要鉴权
    },
    component: resolve => require(["@/views/MoreUse/LabelMangement"], resolve)
  },
  // 数据版本规则管理
  {
    name: 'RuleManagement',
    path: 'RuleManagement',
    meta: {
      requiresAuth: true // 说明需要鉴权
    },
    component: resolve => require(["@/views/MoreUse/RuleManagement"], resolve)
  },
  // 字典表
  {
    name: 'DictionaryTable',
    path: 'DictionaryTable',
    meta: {
      requiresAuth: true // 说明需要鉴权
    },
    redirect: `/frame/DictionaryTable/DictionaryTableIndex`,
    component: resolve => require(["@/views/MoreUse/DictionaryTable/index"], resolve),
    children: [{
        name: 'DictionaryTableIndex',
        path: 'DictionaryTableIndex',
        meta: {
          requiresAuth: true // 说明需要鉴权
        },
        component: resolve => require(["@/views/MoreUse/DictionaryTable/DictionaryTableLogic"], resolve)
      },
      {
        name: 'DictionaryType',
        path: 'DictionaryType',
        meta: {
          requiresAuth: true // 说明需要鉴权
        },
        component: resolve => require(["@/views/MoreUse/DictionaryTable/DictionaryType/DictionaryTypeLogic"], resolve)
      }
    ]
  },
  // 系统日志
  {
    name: 'SystemLog',
    path: 'SystemLog',
    meta: {
      requiresAuth: true // 说明需要鉴权
    },
    component: resolve => require(["@/views/MoreUse/SystemLog"], resolve)
  }
];
